/*
 * 文件名：ShopConstants.java
 * 版权：Copyright by hlst
 * 描述：
 * 修改人：liuziyu
 * 修改时间：2016年7月18日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.zcsy.commons.constants;

/**
 * @Title: ShopConstants.java
 * @Package： com.zcsy.commons.constants 
 * @Description: 商户常量类
 * @author liuziyu liuziyuwri@foxmail.com
 * @Copyright: 2016 武汉恒数利通软件有限公司 All rights reserved.
 * @date 2016年7月20日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
public class ShopConstants {

	/** 
	 * 返回码定义
	 */
	public static final int RESULT_CODE_SUCCESS = 0;       //正确码
	public static final int RESULT_PASSWORD_FALSE = -1;    //密码错误
	public static final int RESULT_EXCEPTION_FALSE = -1;   //网络异常
	public static final int RESULT_EXSIT_PHONE_FALSE = -1; //手机号已被注册
	public static final int USER_NOT_EXIST = -1;           //账号不存在
	public static final int PHONE_NOT_EXIST = -1;          //手机不存在
	public static final int USER_FORBID = -1;              //该业主被禁用
	public static final int RESULT_CODE_FALSE = -1;        //数据读取失败
	
	/** 
	 * 商户类型
	 */
	public static final int SHOP_USER_TYPE    = 3;      //商户类型
	public static final int SHOP_ACCOUNT_TYPE = 2;      //商户类型

	/** 
	 * 业主状态
	 */
	public static final int OWNER_USER_STATE = 1;      //业主启用
	
	/**
	 * 操作类型，1找回密码2绑定手机3验证原手机号
	 */
	public static final int FIND_PASSWORD         = 1;  //找回密码
	public static final int BOUND_PHONE           = 2;  //绑定手机
	public static final int IDENTIFY_OLD_PHONE    = 3;  //验证原手机号
	
	/**
	 * 绑定手机,忘记密码
	 */
	public static final int PHONE_BIND_SUCCESS = 0;  //绑定手机成功
	public static final int PHONE_BIND_FALSE   = -1;  //绑定手机成功
	public static final int CODE_VERIFY_SUCCESS = 0;  //绑定手机成功
	public static final int PHONE_ALREADY_BIND = -1;  //手机号早已被绑定
	public static final int CODE_IS_INVALIDE = -2;  //验证码失效
	public static final int CODE_IS_FALSE = -3;  //输入验证码错误
	public static final int PHONE_NOT_BIND_ACCOUNT = -1;  //手机号没有绑定账号
	
	 /**
     * 判断token是否有效：-4 帐号在其他设备登录；-5 用户授权失效请重新登录
     */
    public static final int TOKEN_CHANGED = -4;  //帐号在其他设备登录
    public static final int TOKEN_EXPIRE  = -5;  //用户授权失效请重新登录
    
    /**
     * 判断token是否有效：-4 帐号在其他设备登录；-5 用户授权失效请重新登录
     */
    public static final int ORDER_STATE_NOT_PAY      = 0;  //待付款
    public static final int ORDER_STATE_NOT_CONFIRM  = 1;  //待确认
    public static final int ORDER_STATE_NOT_SEND     = 2;  //待发货
    public static final int ORDER_STATE_REFUND       = 6;  //退款
    public static final int ORDER_STATE_RETURN_GOODS = 10; //退货
    
    /**
     * 对数据库操作后的状态
     */
    public static final int STATE_SUCCESS = 1;  //成功
    public static final int STATE_FALSE   = 0;  //失败
    
    /**
     * 1:信息插入成功 0：信息插入失败
     */
    public static final int INSERT_SUCCESS  = 1;   //信息插入成功
    public static final int INSERT_FALSE    = 0;  //信息插入失败
    
    /**
     * 优惠券状态
     */
    public static final int COUPON_STATE_NOT_START = 1;  //未开始
    public static final int COUPON_STATE_UNDERWAY  = 2;  //进行中
    public static final int COUPON_STATE_INVALID   = 3;  //失效
    
    /**
     * 1:信息更新成功 0：信息更新失败
     */
    public static final int UPDATE_SUCCESS  = 1;   //信息更新成功
    public static final int UPDATE_FALSE    = 0;  //信息更新失败
    
    /**
    * 分页大小
    */
    public static final int PAGE_SIZE  = 10; //每页大小
    public static final int PAGE_NO    = 1; //默认首页 

    /**
     * 客户端类型为空
     */
    public static final int APP_TYPE_NULL = -1;
    
    /**
     * 客户端不存在
     */
    public static final int APP_NOT_EXIST = -2;
    
    /**
     * 优惠券类型
     */
    public static final int COUPON_CUT_AT_CERTAIN_PRICE = 3;  // 满减劵
    
    /**
     * 修改密码
     */
    public static final int MODIFY_PASSWORD_SUCCESS = 0;  //修改密码成功
    public static final int OLD_PASSWORD_FALSE = -1; //旧密码输入错误
    public static final int CONFIRM_PASSWORD_FALSE = -2; //两次密码输入不一致
    
    /**
     * 请求成功
     */
    public static final int REQUEST_SUCCESS = 0;
    
    /**
     * 优惠券状态
     */
    public static final int COUPON_STATE_NEW            = 1;  //新申请
    public static final int COUPON_STATE_NOMAL          = 2;  //正常
    public static final int COUPON_STATE_SHOP_FORBIDDEN = 5;  //商户禁用  
    
    
    /** 
     * 业主类型
     */
    public static final int OWNER_USER_TYPE = 5;      //业主类型
    
    /** 
     * 领用/使用列表
     */
    public static final int COUPON_GET_LIST = 1;      //领用列表
    public static final int COUPON_USE_LIST = 2;      //使用列表
    
    /** 
     * 商户app信鸽密钥
     */
    public static final String accessIdAndroid = "2100216445"; // Android应用名称：DSHOP-ANDROID 
    public static final String accessIdIOS = ""; // IOS应用名称：DSHOP-IOS
    public static final String SecretKeyAndroid = "5bc9597e78426f33fa75ff0a0530daf4"; // Android应用名称：DSHOP-ANDROID
    public static final String SecretKeyIOS = ""; // IOS应用名称：DSHOP-IOS 
 
    /**
     * 图文混排的描述使用wap连接
     */
    public static final String WAP_URL = "http://120.25.162.94:8080/distributionConn";  //图文混排的描述使用wap连接
    
    /**
     * 获取个人信息状态
     */
    public static final int GET_USERINFO_SUCCESS = 0;  //获取个人信息成功
    public static final int GET_USERINFO_FALSE = -1;  //获取个人信息失败
    
    /**
     * 商品状态
     */
    public static final int GOODS_STATE_NORMAL 		  = 0;  //正常
    public static final int GOODS_STATE_UNDERCARRIAGE = 1;  //下架
    public static final int GOODS_STATE_DELETE        = 2;  //删除
    
    /**
     * orderState 订单状态 （ 1待付款， 2待确认， 3待发货， 4退款/售后， 5全部， 6已发货， 7已完成， 8已关闭）
     */
    public static final int ORDERSTATE_NOT_PAY 		  = 1;  //1待付款
    public static final int ORDERSTATE_NOT_CONFIRM    = 2;  //2待确认
    public static final int ORDERSTATE_NOT_SEND       = 3;  //3待发货
    public static final int ORDERSTATE_AFTER_SALE     = 4;  //4退款/售后
    public static final int ORDERSTATE_ALL            = 5;  //5全部
    public static final int ORDERSTATE_ALREADY_SEND   = 6;  //6已发货
    public static final int ORDERSTATE_DONE           = 7;  //7已完成
    public static final int ORDERSTATE_CLOSE          = 8;  //8已关闭
    
    /**
     * SQLOrderState 订单状态 
     */
    public static final int SQL_ORDERSTATE_NOT_PAY 		         = 0;  //0待付款
    public static final int SQL_ORDERSTATE_NOT_CONFIRM           = 1;  //1待确认
    public static final int SQL_ORDERSTATE_NOT_SEND              = 2;  //2待发货
    public static final int SQL_ORDERSTATE_SENDING               = 3;  //3配送中
    public static final int SQL_ORDERSTATE_COMPLETE              = 4;  //4已完成
    public static final int SQL_ORDERSTATE_DRAWBACK_APPLICATION  = 6;  //6退款申请
    public static final int SQL_ORDERSTATE_RETURN_APPLICATION    = 10; //10退货申请
    public static final int SQL_ORDERSTATE_CANCEL                = 5;  //5已取消
    
    public static final int SQL_WAIT_USE                         = 9;  //9待消费
    public static final int SQL_REFUND_CONFIRMED                 = 7;  //7退款已确认
    public static final int SQL_RETURN_CONFIRMED                 = 11; //11退货已确认
    
    /**
     * SQLGoodsState 商品状态 
     */
    public static final int GOODSSTATE_SELLING 	  = 1;  //1在售
    public static final int GOODSSTATE_SELL_OUT   = 2;  //2售罄
    public static final int GOODSSTATE_WAIT_SELL  = 3;  //3待售
    
    public static final int SQL_GOODSSTATE_NORMAL 	  = 0;  //正常
    public static final int SQL_GOODSSTATE_OUT        = 1;  //下架
    
    public static final int SQL_GOODSSTATE_SELL_OUT   = 1;  //售罄
    
    /**
     * 订单操作
     */
    public static final int ORDER_CONFIRM 		  = 1;  //1确认订单
    public static final int ORDER_REJECT          = 2;  //2拒绝订单
    public static final int ORDER_SEND            = 3;  //3发货
    public static final int ORDER_CONFIRM_REFUND  = 4;  //4确认退款
    public static final int ORDER_REJECT_REFUND   = 5;  //5拒绝退款
    public static final int ORDER_CONFIRM_RETURN  = 6;  //6确认退货
    public static final int ORDER_REJECT_RETURN   = 7;  //7拒绝退货
    
    public static final int DISTRIBUTION_NEED      = 1;  //1配送公司配送
    public static final int DISTRIBUTION_NO_NEED   = 2;  //2无配送
    
    public static final int BYSELF_YES  = 1;  //1自提
    public static final int BYSELF_NO   = 0;  //0不自提

    public static final int PUSH_TYPE_ONE = 1; //有新的订单待配送
    public static final int PUSH_TYPE_TWO = 2; //管理员把订单派给了配送员
    
    /**
     * 报表时间类型选择
     */
    public static final int REPORT_7DAYS         = 1;  //近7天
    public static final int REPORT_30DAYS         = 2;  //近30天
    
    /** 
     * 商户app信鸽密钥
     */
    public static final String ACCESSIDANDROID = "2100216445"; // Android应用名称：DSHOP-ANDROID 
    public static final String ACCESSIDIOS = "2200216472"; // IOS应用名称：OWNERCONN-IOS
    public static final String SECRETKEYANDROID = "5bc9597e78426f33fa75ff0a0530daf4"; 
    public static final String SECRETKEYIOS = "c5ca2e8f9fa88f1649001847b6236501"; 
    
    
    public static final int GET_WAP_TYPE_ABOUTUS               = 6;  //关于我们
    public static final int GET_WAP_TYPE_HELP                  = 7;  //帮助手册
   
    
}
